$('document').ready(function(){
/*############# Sound Notification ###########*/
var playsound=parseInt(localStorage.getItem('playsoundnotification'));
if(playsound){
	$('#soundnotification').attr("checked","checked");
}
$('#soundnotification').live('change',(function(){
if ( $(this).prop("checked") ){
localStorage.setItem('playsoundnotification',1);
}else{
localStorage.setItem('playsoundnotification',0);
}

}));
/*################ Notification Close #################*/
var closenotificationafter=parseInt(localStorage.getItem('closenotificationafter'));
$('#closenotificationafter').val(closenotificationafter / 1000);
$('#closenotificationafter').live('keyup',(function(){
	var time=parseInt($(this).val());
	$(this).val(time);
	time=time * 1000;
	localStorage.setItem('closenotificationafter',time);
	console.log(time);
}));


});